<template>
  <div>
    <h2>新闻页</h2>
    {{ doubleNum }}
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  mounted () {
    console.log(this.$store)
  },
  computed: {
    ...mapGetters(['doubleNum'])
    /* doubleNum () {
      return this.$store.state.num * 2
    } */
  }
}
</script>

<style lang="scss" scoped>

</style>
